﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Uc_Tinh.ascx.cs" Inherits="VanTaiTMS.Page.Uc_Tinh" %>
<%@ Register Src="~/SubPage/uc_Mien.ascx" TagPrefix="uc1" TagName="uc_Mien" %>
   <script type="text/javascript">
        $(document).ready(function () {
            //setup new person dialog
            $('#ThemNhanhMien').dialog({
                autoOpen: false,
                draggable: true,
                height: "auto",
                width: "auto",
                position: ['center', 50],
                resizable: false,
                create: function (event) { $(event.target).parent().css('position', 'fixed'); },
                open: function () {
                    $(this).parent().appendTo("form");
                }
            });
        });
    </script>

<script type="text/javascript">
    $(document).ready(function () {
        //setup new person dialog
        $('#ucthongbaoTinh').dialog({
            autoOpen: false,
            draggable: true,
            height: "auto",
            width: "372px",
            position: ['center', 50],
            resizable: false,

            create: function (event) { $(event.target).parent().css('position', 'fixed'); },
            open: function () {
                $(this).parent().appendTo("form");
            }
        });
    });
</script>

<asp:UpdatePanel ID="upNewUpdatePanel" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
    <ContentTemplate>
        <div class="toolbar-ui-all-big">
            <asp:ImageButton CssClass="button-all" ID="imgSave" ImageAlign="Middle"
                             ImageUrl="~/Icon/save.png" runat="server"
                             OnClick="imgSave_Click" />

            <asp:ImageButton CssClass="button-all" ID="imgrefesh" ImageAlign="Middle"
                             ImageUrl="~/Icon/refesh-ui.png" ToolTip="Làm tươi" runat="server"
                             OnClick="imgrefesh_Click" />
        </div>
        <div class="clr"></div>
        <div class="ui-main">
            <div style="display: none">
                <asp:Label ID="lbID" runat="server"></asp:Label>
            </div>
            <div class="ui-box-text-box">
                <label class="label">Mã Tỉnh <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtMaTinh" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Tên Tỉnh <span style="color:Red">(*)</span></label>
                <asp:TextBox ID="txtTenTinh" CssClass="textbox" runat="server"></asp:TextBox>
            </div>
            <div class="clr"></div>

            <div class="ui-box-text-box">
                <label class="label">Tên Tỉnh E </label>
                <asp:TextBox ID="txtTenTinhE" CssClass="textbox" runat="server"></asp:TextBox>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Tên Tỉnh C </label>
                <asp:TextBox ID="txtTenTinhC" CssClass="textbox" runat="server"></asp:TextBox>
            </div>
            <div class="clr"></div>

            <div class="ui-box-text-box">
                <label class="label">Miền <span style="color:Red">(*)</span>
                    <asp:LinkButton ID="LinkThemNhanhMien" runat="server" OnClick="LinkThemNhanhMien_Click">[...]</asp:LinkButton>
                </label>
                <asp:DropDownList ID="drMien" CssClass="textbox" runat="server"></asp:DropDownList>
            </div>

            <div class="ui-box-text-box">
                <label class="label">Ghi chú</label>
                <asp:TextBox ID="txtGhiChu" TextMode="MultiLine" CssClass="textbox-muiti" runat="server"></asp:TextBox>
            </div>
            <div class="clr"></div>
        </div>
        <div class="clr"></div>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upNewUpdatePanel">
            <ProgressTemplate>
                <img alt='loadding' class="loading" src="../images/loading-fb.gif" /><br />
                <div class="loading-label-right">
                    Đang xử lý dữ liệu...
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="imgSave" EventName="Click" />
    </Triggers>
</asp:UpdatePanel>

<div id="ThemNhanhMien" title="Cập nhật danh mục Miền">
        <uc1:uc_Mien runat="server" id="uc_Mien" />
    </div>

<!-------------Thông-Bao----------------->
    <div id="ucthongbaoTinh" title="Thông Báo">
        <asp:UpdatePanel ID="updatePanelThongBao" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
            <ContentTemplate>
                <p>
                    <span class="ui-icon ui-icon-circle-check" style="float: left; margin: 0 7px 50px 0;"></span>
                    <asp:Label ID="lbThongBaoLoi" CssClass="error-msg" runat="server" Text=""></asp:Label>
                </p>
                <hr />
                <div class="toolbar-ui-footer">
                    <asp:Button ID="cmdCloseThongBao" CssClass="btn btn-info" Height="29px" runat="server"
                        Text="Đóng lại" OnClick="cmdCloseThongBao_Click" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
<!--------------Kêt-thúc----------------->


